package com.droidwatcher.JsonEntity;

import com.alibaba.fastjson.annotation.JSONField;
import com.google.gson.annotations.SerializedName;

/**
 * Created by Administrator on 2018/1/25.
 */

public class RegistAndLoginResponse extends BaseResponse{
    @SerializedName("data")
    @JSONField(name = "data")
    ResponseData data;


    public static class ResponseData{
        long uid;
        String token ;
        @SerializedName("member_info")
        @JSONField(name = "member_info")
        Member member_info;

        public class  Member{
            int   is_member;
            long member_begin_time ;
            long member_end_time;

            @Override
            public String toString() {
                return "Member{" +
                        "is_member=" + is_member +
                        ", member_begin_time=" + member_begin_time +
                        ", member_end_time=" + member_end_time +
                        '}';
            }

            public int is_member() {
                return is_member;
            }

            public void setIs_member(int is_member) {
                this.is_member = is_member;
            }

            public long getMember_begin_time() {
                return member_begin_time;
            }

            public void setMember_begin_time(long member_begin_time) {
                this.member_begin_time = member_begin_time;
            }

            public long getMember_end_time() {
                return member_end_time;
            }

            public void setMember_end_time(long member_end_time) {
                this.member_end_time = member_end_time;
            }
        }

        @Override
        public String toString() {
            return "ResponseData{" +
                    "uid='" + uid + '\'' +
                    ", token='" + token + '\'' +
                    ", member_info=" + member_info +
                    '}';
        }

        public long getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public Member getMember_info() {
            return member_info;
        }

        public void setMember_info(Member member_info) {
            this.member_info = member_info;
        }
    }

    public ResponseData getData() {
        return data;
    }

    public void setData(ResponseData data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "RegistResponse{" +
                "data=" + data +
                "meta=" + meta.toString() +
                '}';
    }
}
